<template>
	<div>
		<confirm-order-address :getAddressList="userInfo" :addressItem="addressItem"></confirm-order-address>
	</div>
</template>

<script>
	import ConfirmOrderAddress from "../../../real-components/ConfirmOrder/ConfirmOrderAddress";
	import {getPageTree, initDomTree} from "../../../utils/getPageTree";
	import {mapGetters,mapActions} from 'vuex';
	export default {
		props: {
           
        },
        computed:{
        	pageTree () {
				return getPageTree(this, this.page);
			},
			...mapGetters('wxh',[
				'sessionId',
				'userInfo'
			])
        },
        data () {
            return {
                addressItem:null	
            }
        },
        methods: {
        	getAddress(){
        		this.addressItem = this.$route.query.name;
        	}
        },
        components: {
	        "confirm-order-address": ConfirmOrderAddress,
	    },
	    created(){
	    	if(!this.sessionId){
	    		this.$router.push('login');
	    	}
			this.getAddress();
	    }
        
	}
</script>

<style>
</style>